package com.smartstate.autoMaticControl.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.File;
import java.util.Date;

/**
 * <p>楼宇表</p>
 * <p>@Author 陈永杰</p>
 * <p>@Date: 2022/8/17</p>
 * <p>@Time: 19:22</p>
 * <p>@version 1.0 <p>
 */
@Data
@TableName("objmoudel")
@Accessors(chain=true)
public class ObjMoudel {
    /**
     * ID
     */
    @TableId(type = IdType.INPUT)
    @TableField(value = "id",fill = FieldFill.INSERT)
    private String id;

    /**
     *名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "名称")
    private String name;

    private File phon;

    /**
     *类型
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "类型")
    private String type;

    /**
     *父类id
     */
    @TableField(value = "parentId")
    @ApiModelProperty(value = "类型")
    private String parentId;

    /**
     * 开始时间
     */
    @TableField(value = "createTime")
    @ApiModelProperty(value = "开始时间")
    private Date createTime;

    /**
     * 添加图片
     */
    @TableField(value = "photo")
    @ApiModelProperty(value = "名称")
    private String photo;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField(value = "createUser",fill = FieldFill.INSERT)
    private String createUser;



    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    @TableField(value = "updateUser", fill = FieldFill.UPDATE)
    private String updateUser;

    @ApiModelProperty(value = "计量管理")
    @TableField(value = "metering")
    private JSONArray metering;

}